const express = require('express')
const router = express.Router()
const { DataAPIController } = require('../controller/data_api')
const authMiddleware = require('../middleware/auth')

router.post('/v1/dataApi/data', authMiddleware, DataAPIController.dataAPIByID)
router.post('/v1/dataApi/exec', authMiddleware, DataAPIController.dataAPICheck)
router.post('/v1/dataApi/add', authMiddleware, DataAPIController.dataAPIAdd)
router.put('/v1/dataApi/edit', authMiddleware, DataAPIController.dataAPIUpd)
router.delete('/v1/dataApi/del', authMiddleware, DataAPIController.dataAPIDel)
router.get('/v1/dataApi/list', authMiddleware, DataAPIController.dataAPIList)
router.get('/v1/dataApi/all', authMiddleware, DataAPIController.dataAllAPIList)
module.exports = router
